#!/usr/bin/python
import os,sys

if len(sys.argv) > 1:
    for i in sys.argv[1:]:
        print os.path.abspath(i)
else:
    for i in sys.stdin:
        print os.path.abspath(i.strip())
